/*
 * @(#)GraphicObject.java			0.1 02/12/2010
 * Copyright (C) 2010 Grupo de Alunos abaixo
 * 
 * Universidade Federal do ABC
 * Vida Artificial - 3o quadrimestre de 2010
 * Aluno: Abner
 * Aluno: Cláudio Antônio Peanho
 * Aluno: Fabrizio Borelli
 * Aluna: Maitê Balhester
 * Aluno: Rafael Munhoz
 * Professora Dr. Karla Vittori
 * Projeto: Simulação de Colônia de Formigas (antcolonyswarm)
 * 
 * Código baseado em jheatbugs-3.0 de Timothy Howe
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.

 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.

 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package br.edu.ufabc.va.acs.controller;

import swarm.gui.Raster;

/**
 * @author Peanho
 * 
 */
public interface GraphicObject {

	/**
	 * Desenha este objeto no {@code raster}.
	 * 
	 * @param raster
	 *            widget gráfico
	 * 
	 * @return {@code this}
	 */
	Object drawSelfOn(Raster raster);
	
	/**
	 * Atribui {@code colorIndex} ao indice de cor a ser utilizado na exibição
	 * do objeto.
	 * 
	 * @param colorIndex
	 *            índice do mapa de cores
	 */
	public void setColorIndex(byte colorIndex);
}
